<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive" />
    </keep-alive>

    <router-view v-if="!$route.meta.keepAlive" />
    <!--引入底部导航组件 利用路由里面设置的meta参数来控制其显示-->
    <vanTabs v-if="$route.meta.TabbarShow"></vanTabs>
  </div>
</template>

<script>
import vanTabs from "./components/vanTabs";
export default {
  name: "App",
  components: {
    vanTabs
  }
};
</script>

<style>
</style>
